#include "Game.h"

void Game::events(SDL_Event *event)
{
     if(event -> type == SDL_KEYDOWN)
     {
          if(event -> key.keysym.sym == SDLK_ESCAPE)
          {
               running = false;
          }
     }
     
     if(event -> type == SDL_QUIT)
     {
          running = false;
     }
	
	hero.input(event);    
}
